//
//  NewsDataBaseHandle.h
//  MusicNews
//
//  Created by lanou3g on 15/10/15.
//  Copyright © 2015年 LC.J. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface NewsDataBaseHandle : NSObject
// 单例方法， 返回一个NewsDataBaseHandle对象
+ (NewsDataBaseHandle *)sharedInstance;
- (sqlite3 *)openDB;
- (void)closeDB;
- (void)insertNewsInfo:(NSString*)title newsData:(NSData*)data;
- (NSData*)searchAllNews:(NSString*)title;
- (void)upDatesearchAllNews:(NSString*)title newsData:(NSData*)data;
- (BOOL)searchNewsTitle:(NSString*)title;

- (sqlite3 *)openDB1;
- (void)insertTitleArray:(NSData*)array;
- (NSData*)searchAllTitle;
- (void)upDatesearchAllTitle:(NSData*)data;
- (BOOL)searchNews:(NSData*)data;
- (void)deleteAll;
@end
